
package main

import dserver "dserver"
import "testing"
import __os__ "os"
import __regexp__ "regexp"

var tests = []testing.InternalTest{
	{"dserver.TestRace", dserver.TestRace},
	{"dserver.TestSBuf", dserver.TestSBuf},
	{"dserver.TestBuf1", dserver.TestBuf1},
	{"dserver.TestBuf2", dserver.TestBuf2},
	{"dserver.TestBBuf", dserver.TestBBuf},
}

var benchmarks = []testing.InternalBenchmark{
}

var matchPat string
var matchRe *__regexp__.Regexp

func matchString(pat, str string) (result bool, err __os__.Error) {
	if matchRe == nil || matchPat != pat {
		matchPat = pat
		matchRe, err = __regexp__.Compile(matchPat)
		if err != nil {
			return
		}
	}
	return matchRe.MatchString(str), nil
}

func main() {
	testing.Main(matchString, tests, benchmarks)
}

